package ooExercise.ooday02;

public class Dog extends Animal{
    Dog(String name,String color,int age,String food){
        super(name,color,age,food);
    }
    void lookHome(){
        System.out.println(color+"色的"+age+"岁的狗狗"+name+"正在看家...");
    }
    void run(){
        System.out.println("一只"+age+"岁的狗狗,名叫"+name+"正在操场被人撸，并给它喂"+food);
    }
    void eat(){
        System.out.println(color+"颜色,"+age+"岁的狗狗，名叫"+name+"正在吃"+food+"并大声的汪汪叫");
    }

}
